This tutorial will show you how to have an enemy automatically shoot objects in a given direction. This tutorial utilizes a step event and the random action to randomize the occurrence of the enemy projectiles. (2:23)
This video will show you how to use a step event in GameMaker 8 to create a loop that continually checks the location of an object and has another object move toward it. (3:40)